<template lang="html">
    <div class="box">
        <editor
            :initial="initial"
            :upload-url="uploadUrl">
        </editor>
        <input type="button" name="name" value="submit" @click="submit" />
    </div>
</template>

<script>
import Editor from './editor.vue'
import { mapGetters } from 'vuex'
export default {
    data() {
        return {
            initial: '',
            uploadUrl: ''
        }
    },
    methods: {
        ... mapGetters([ 'content' ]),
        submit() {
            console.log(this.content())
        }
    },
    components: { 'editor': Editor }
}
</script>

<style lang="css">
    .box {
        width: 1000px;
        margin: 0 auto;
    }
</style>